home *** CD-ROM | disk | FTP | other *** search
Wrap
<?xml version="1.0" encoding="EUC-KR"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="ko" xml:lang="ko"><head><!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX This file is generated from xml source: DO NOT EDIT XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --> <title>apxs - APache eXtenSion ╡╡▒╕ - Apache HTTP Server</title> <link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" /> <link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" /> <link href="../style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" /> <link href="../images/favicon.ico" rel="shortcut icon" /></head> <body id="manual-page"><div id="page-header"> <p class="menu"><a href="../mod/">╕≡╡Γ</a> | <a href="../mod/directives.html">┴÷╜├╛ε╡Θ</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">┐δ╛ε</a> | <a href="../sitemap.html">╗τ└╠╞«╕╩</a></p> <p class="apache">Apache HTTP Server Version 2.0</p> <img alt="" src="../images/feather.gif" /></div> <div class="up"><a href="./"><img title="<-" alt="<-" src="../images/left.gif" /></a></div> <div id="path"> <a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">HTTP Server</a> > <a href="http://httpd.apache.org/docs-project/">Documentation</a> > <a href="../">Version 2.0</a> > <a href="./">Programs</a></div><div id="page-content"><div id="preamble"><h1>apxs - APache eXtenSion ╡╡▒╕</h1> <div class="toplang"> <p><span>░í┤╔╟╤ ╛≡╛ε: </span><a href="../en/programs/apxs.html" hreflang="en" rel="alternate" title="English"> en </a> | <a href="../ko/programs/apxs.html" title="Korean"> ko </a></p> </div> <p><code>apxs</code>┤┬ ╛╞╞──í ╟╧└╠╞█┼╪╜║╞« └ⁿ╝█ ╟┴╖╬┼Σ─▌ (HTTP) ╝¡╣÷└╟ ╚«└σ╕≡╡Γ└╗ ──╞─└╧╟╧░φ ╝│─í╟╧┤┬ ╡╡▒╕└╠┤┘. └╠ ╡╡▒╕┤┬ ┐⌐╖» ╝╥╜║┐═ ┐└║Ω┴º╞«<var>╞─└╧</var>└╗ ░í┴÷░φ, <code class="module"><a href="../mod/mod_so.html">mod_so</a></code>└╟ <code class="directive"><a href="../mod/mod_so.html#loadmodule">LoadModule</a></code> ┴÷╜├╛ε╖╬ ╜╟╟α┴▀┐í ╛╞╞──í ╝¡╣÷╖╬ └╨╛ε╡Θ└╧ ╝÷ └╓┤┬ ╡┐└√░°└»░┤├╝(DSO)╕ª ╕╕╡τ┤┘.</p> <p>▒╫╖í╝¡ └╠╖▒ ╚«└σ╣µ╜─└╗ ╗τ┐δ╟╧╖┴╕Θ ╟├╖í╞√└╠ DSO ▒Γ┤╔└╗ ┴÷┐°╟╧░φ ╛╞╞──í <code>httpd</code> ╜╟╟α╞─└╧└╗ <code class="module"><a href="../mod/mod_so.html">mod_so</a></code> ╕≡╡Γ░· ░░└╠ ──╞─└╧╟╪╛▀ ╟╤┤┘. <code>apxs</code> ╡╡▒╕┤┬ └╠ ┴╢░╟└╠ ╕╕┴╖╟╧┴÷╛╩└╕╕Θ ╜╟╟α╟╧┴÷ ╛╩┤┬┤┘. ┴≈┴ó ╕φ╖╔╛ε╕ª ╜╟╟α╟╧┐⌐ ┴╢░╟└╠ ╕╕┴╖╟╧┤┬┴÷ ╛╦╛╞║╝ ╝÷ └╓┤┘</p> <div class="example"><p><code> $ httpd -l </code></p></div> <p>╕±╖╧┐í <code class="module"><a href="../mod/mod_so.html">mod_so</a></code> ╕≡╡Γ└╠ │¬┐═╛▀ ╟╤┤┘. ┴╢░╟└╗ ╕╕┴╖╟╧╕Θ <code>apxs</code> ╡╡▒╕╖╬ DSO ╕≡╡Γ└╗ ╝│─í╟╧┐⌐ ╛╞╞──í╝¡╣÷└╟ ▒Γ┤╔└╗ ╜▒░╘ ╚«└σ╟╥ ╝÷ └╓┤┘:</p> <div class="example"><p><code> $ apxs -i -a -c mod_foo.c<br /> gcc -fpic -DSHARED_MODULE -I/path/to/apache/include -c mod_foo.c<br /> ld -Bshareable -o mod_foo.so mod_foo.o<br /> cp mod_foo.so /path/to/apache/modules/mod_foo.so<br /> chmod 755 /path/to/apache/modules/mod_foo.so<br /> [activating module `foo' in /path/to/apache/etc/httpd.conf]<br /> $ apachectl restart<br /> /path/to/apache/sbin/apachectl restart: httpd not running, trying to start<br /> [Tue Mar 31 11:27:55 1998] [debug] mod_so.c(303): loaded module foo_module<br /> /path/to/apache/sbin/apachectl restart: httpd started<br /> $ _ </code></p></div> <p>╛╞▒╘╕╒╞« <var>files</var>┐í┤┬ C ╝╥╜║╞─└╧ (.c) └╠│¬ ┐└║Ω┴º╞«╞─└╧ (.o), ╢≤└╠║Ω╖»╕«╕≡└╜ (.a)└╗ ╗τ┐δ╟╥ ╝÷ └╓┤┘. <code>apxs</code> ╡╡▒╕┤┬ ╚«└σ└┌╕ª ║╕░φ └┌╡┐└╕╖╬ C ╝╥╜║╞─└╧└║ ──╞─└╧╟╧░φ, ┐└║Ω┴º╞«┐═ ╕≡└╜╞─└╧└║ ╕╡┼⌐┐í╕╕ ╗τ┐δ╟╤┤┘. ▒╫╖»│¬ ──╞─└╧╟╤ ┐└║Ω┴º╞«╕ª ╗τ┐δ╟╧╖┴╕Θ ╡┐└√└╕╖╬ └╨╛ε╡Θ└╧ ╝÷ └╓┤┬ ░°└»░┤├╝╖╬ ╗τ┐δ╟╧▒Γ└º╟╪ ╣▌╡σ╜├ ┐└║Ω┴º╞«╕ª └º─í╡╢╕│─┌╡σ(PIC, position independent code)╖╬ ──╞─└╧╟╪╛▀ ╟╤┤┘. GCC└╟ ░µ┐∞ <code>-fpic</code>└╗ ╗τ┐δ╟╧╕Θ ╡╚┤┘. ┤┘╕Ñ C ──╞─└╧╖»┤┬ ╝│╕φ╝¡╕ª ┬ⁿ░φ╟╧░┼│¬ <code>apxs</code>░í ┐└║Ω┴º╞«╞─└╧└╗ ──╞─└╧╟╥╢º ╗τ┐δ╟╧┤┬ ┐╔╝╟└╗ ┬ⁿ░φ╟╧╢≤.</p> <p>╛╞╞──í└╟ DSO ┴÷┐°┐í ┤δ╟╤ ┤⌡ └┌╝╝╟╤ │╗┐δ└║ <code class="module"><a href="../mod/mod_so.html">mod_so</a></code> ╣«╝¡╕ª ┬ⁿ░φ╟╧░┼│¬ <code>src/modules/standard/mod_so.c</code> ╝╥╜║╞─└╧└╗ └╨╛ε║┴╢≤.</p> </div> <div id="quickview"><ul id="toc"><li><img alt="" src="../images/down.gif" /> <a href="#synopsis">░│┐Σ</a></li> <li><img alt="" src="../images/down.gif" /> <a href="#options">┐╔╝╟</a></li> <li><img alt="" src="../images/down.gif" /> <a href="#examples">┐╣┴ª</a></li> </ul><h3>┬ⁿ░φ</h3><ul class="seealso"><li><a href="apachectl.html">apachectl</a></li><li><a href="httpd.html">httpd</a></li></ul></div> <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> <div class="section"> <h2><a name="synopsis" id="synopsis">░│┐Σ</a></h2> <p><code><strong>apxs</strong> -<strong>g</strong> [ -<strong>S</strong> <var>name</var>=<var>value</var> ] -<strong>n</strong> <var>modname</var></code></p> <p><code><strong>apxs</strong> -<strong>q</strong> [ -<strong>S</strong> <var>name</var>=<var>value</var> ] <var>query</var> ...</code></p> <p><code><strong>apxs</strong> -<strong>c</strong> [ -<strong>S</strong> <var>name</var>=<var>value</var> ] [ -<strong>o</strong> <var>dsofile</var> ] [ -<strong>I</strong> <var>incdir</var> ] [ -<strong>D</strong> <var>name</var>=<var>value</var> ] [ -<strong>L</strong> <var>libdir</var> ] [ -<strong>l</strong> <var>libname</var> ] [ -<strong>Wc,</strong><var>compiler-flags</var> ] [ -<strong>Wl,</strong><var>linker-flags</var> ] <var>files</var> ...</code></p> <p><code><strong>apxs</strong> -<strong>i</strong> [ -<strong>S</strong> <var>name</var>=<var>value</var> ] [ -<strong>n</strong> <var>modname</var> ] [ -<strong>a</strong> ] [ -<strong>A</strong> ] <var>dso-file</var> ...</code></p> <p><code><strong>apxs</strong> -<strong>e</strong> [ -<strong>S</strong> <var>name</var>=<var>value</var> ] [ -<strong>n</strong> <var>modname</var> ] [ -<strong>a</strong> ] [ -<strong>A</strong> ] <var>dso-file</var> ...</code></p> </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> <div class="section"> <h2><a name="options" id="options">┐╔╝╟</a></h2> <h3><a name="options.common" id="options.common">░°┼δ ┐╔╝╟</a></h3> <dl> <dt><code>-n <var>modname</var></code></dt> <dd><code>-i</code> (install)░· <code>-g</code> (template generation) ┐╔╝╟└╗ ╗τ┐δ╟╥╢º ┴≈┴ó ╕≡╡Γ╕φ└╗ ┴÷┴ñ╟╤┤┘. └╠ ┐╔╝╟└╗ ╗τ┐δ╟╧┐⌐ ╕≡╡Γ╕φ└╗ ┴≈┴ó ┴÷┴ñ╟╤┤┘. <code>-g</code> ┐╔╝╟└╗ ╗τ┐δ╟╤┤┘╕Θ └╠ ┐╔╝╟└╗ ╣▌╡σ╜├ ╗τ┐δ╟╪╛▀╟╧░φ, <code>-i</code> ┐╔╝╟└╗ ╗τ┐δ╟╤┤┘╕Θ <code>apxs</code> ╡╡▒╕┤┬ ╝╥╜║│¬ (╕╢┴÷╕╖ ╜├╡╡╖╬) ╞─└╧╕φ└╗ ░í┴÷░φ └╠╕º└╗ ├▀├°╟╤┤┘.</dd> </dl> <h3><a name="options.query" id="options.query">┴·└╟ ┐╔╝╟</a></h3> <dl> <dt><code>-q</code></dt> <dd><code>apxs</code>└╟ ╝│┴ñ░¬└╗ ╛╦╛╞│╜┤┘. <var>query</var>┐í┤┬ ┤┘└╜└╗ ╗τ┐δ╟╥ ╝÷ └╓┤┘: <code>CC</code>, <code>CFLAGS</code>, <code>CFLAGS_SHLIB</code>, <code>INCLUDEDIR</code>, <code>LD_SHLIB</code>, <code>LDFLAGS_SHLIB</code>, <code>LIBEXECDIR</code>, <code>LIBS_SHLIB</code>, <code>SBINDIR</code>, <code>SYSCONFDIR</code>, <code>TARGET</code>. <p>╝│┴ñ└╗ ┴≈┴ó ╛╦╛╞│╛╢º ╗τ┐δ╟╤┤┘.</p> <div class="example"><p><code> INC=-I`apxs -q INCLUDEDIR` </code></p></div> <p>┐╣╕ª ╡Θ╛ε, ╛╞╞──í C ╟∞┤⌡╞─└╧└╗ ┴≈┴ó ┴ó▒┘╟╤┤┘╕Θ Makefile┐í╝¡ └º┐═ ░░└╠ ╗τ┐δ╟╤┤┘.</p></dd> </dl> <h3><a name="options.conf" id="options.conf">╝│┴ñ ┐╔╝╟</a></h3> <dl> <dt><code>-S <var>name</var>=<var>value</var></code></dt> <dd>└╠ ┐╔╝╟└║ └º┐í╝¡ ╝│╕φ╟╤ apxs ╝│┴ñ└╗ ║»░µ╟╤┤┘.</dd> </dl> <h3><a name="options.template" id="options.template">░▀║╗(template) ╗²╝║ ┐╔╝╟</a></h3> <dl> <dt><code>-g</code></dt> <dd>╟╧└º╡≡╖║┼Σ╕« <var>name</var>└╗ ╕╕╡Θ░φ (<code>-n</code> ┐╔╝╟ ┬ⁿ░φ) ▒╫░≈┐í ╞─└╧ ╡╬░│╕ª ╕╕╡τ┤┘: ╟╤ ╞─└╧└║ <code>mod_<var>name</var>.c</code>╢≤┤┬ ░▀║╗ ╕≡╡Γ╝╥╜║╞─└╧╖╬, └┌╜┼└╟ ╕≡╡Γ└╗ ╕╕╡Θ╢º ░▀║╗└╕╖╬ ╗τ┐δ╟╧░┼│¬ apxs ▒Γ┤╔└╗ ╜├╟Φ╟╪║╝╢º ╗τ┐δ╟╤┤┘. ┤┘╕Ñ ╞─└╧└║ └╠ ╕≡╡Γ└╗ ╜▒░╘ ──╞─└╧╟╧░φ ╝│─í╟╧▒Γ└º╟╤ <code>Makefile</code>└╠┤┘.</dd> </dl> <h3><a name="options.dso" id="options.dso">DSO ──╞─└╧ ┐╔╝╟</a></h3> <dl> <dt><code>-c</code></dt> <dd>──╞─└╧└╗ ┴÷╜├╟╤┤┘. ╕╒└· <var>files</var>┐í╝¡ C ╝╥╜║╞─└╧╡Θ(.c)└╗ ┐└║Ω┴º╞«╞─└╧(.o)╖╬ ──╞─└╧╟╧░φ, <var>files</var>└╟ │¬╕╙┴÷ ┐└║Ω┴º╞«╞─└╧╡Θ(.o░· .a)░· ╕╡┼⌐╟╧┐⌐ ╡┐└√░°└»░┤├╝ <var>dsofile</var>└╗ ╕╕╡τ┤┘. <code>-o</code> ┐╔╝╟└╗ ╗τ┐δ╟╧┴÷╛╩└╕╕Θ <var>files</var>└╟ ├╣╣°┬░ ╞─└╧╕φ┐í╝¡ └╠╕º└╗ ├▀├°╟╧┐⌐ ║╕┼δ <code>mod_<var>name</var>.so</code>╕ª ╗τ┐δ╟╤┤┘.</dd> <dt><code>-o <var>dsofile</var></code></dt> <dd>╗²╝║╟╥ ╡┐└√░°└»░┤├╝ ╞─└╧╕φ└╗ ┴≈┴ó ┴÷┴ñ╟╤┤┘. └╠╕º└╗ ┴÷┴ñ╟╧┴÷╛╩░φ <var>files</var> ╕±╖╧┐í╝¡ └╠╕º└╗ ├▀├°╟╧┴÷ ╕°╟╧╕Θ ╕╢┴÷╕╖└╕╖╬ <code>mod_unknown.so</code>╕ª └╠╕º└╕╖╬ ╗τ┐δ╟╤┤┘.</dd> <dt><code>-D <var>name</var>=<var>value</var></code></dt> <dd>└╠ ┐╔╝╟└╗ ──╞─└╧ ╕φ╖╔╛ε╖╬ ┴≈┴ó └ⁿ┤▐╟╤┤┘. ──╞─└╧╢º └┌╜┼└╟ define└╗ ├▀░í╟╤┤┘.</dd> <dt><code>-I <var>incdir</var></code></dt> <dd>└╠ ┐╔╝╟└╗ ──╞─└╧ ╕φ╖╔╛ε╖╬ ┴≈┴ó └ⁿ┤▐╟╤┤┘. ──╞─└╧╢º include╕ª ├ú└╗ ╡≡╖║┼Σ╕«╕ª ├▀░í╟╤┤┘.</dd> <dt><code>-L <var>libdir</var></code></dt> <dd>└╠ ┐╔╝╟└╗ ╕╡─┐ ╕φ╖╔╛ε╖╬ ┴≈┴ó └ⁿ┤▐╟╤┤┘. ──╞─└╧╢º ╢≤└╠║Ω╖»╕«╕ª ├ú└╗ ╡≡╖║┼Σ╕«╕ª ├▀░í╟╤┤┘.</dd> <dt><code>-l <var>libname</var></code></dt> <dd>└╠ ┐╔╝╟└╗ ╕╡─┐ ╕φ╖╔╛ε╖╬ ┴≈┴ó └ⁿ┤▐╟╤┤┘. ──╞─└╧╢º ╗τ┐δ╟╥ ╢≤└╠║Ω╖»╕«╕ª ├▀░í╟╤┤┘.</dd> <dt><code>-Wc,<var>compiler-flags</var></code></dt> <dd>└╠ ┐╔╝╟└║ ├▀░í ┐╔╝╟ <var>compiler-flags</var>╕ª ──╞─└╧ ╕φ╖╔╛ε╖╬ └ⁿ┤▐╟╤┤┘. ──╞─└╧╖» ╞»└»└╟ ┐╔╝╟└╗ ├▀░í╟╥╢º ╗τ┐δ╟╤┤┘.</dd> <dt><code>-Wl,<var>linker-flags</var></code></dt> <dd>└╠ ┐╔╝╟└║ ├▀░í ┐╔╝╟ <var>linker-flags</var>╕ª ╕╡─┐ ╕φ╖╔╛ε╖╬ └ⁿ┤▐╟╤┤┘. ╕╡─┐ ╞»└»└╟ ┐╔╝╟└╗ ├▀░í╟╥╢º ╗τ┐δ╟╤┤┘.</dd> </dl> <h3><a name="options.dsoinstall" id="options.dsoinstall">DSO ╝│─í░· ╝│┴ñ ┐╔╝╟</a></h3> <dl> <dt><code>-i</code></dt> <dd>╝│─í╕ª ┴÷╜├╟╤┤┘. ┐⌐╖» ╡┐└√░°└»░┤├╝╕ª ╝¡╣÷└╟ <var>modules</var> ╡≡╖║┼Σ╕«┐í ╝│─í╟╤┤┘.</dd> <dt><code>-a</code></dt> <dd>╛╞╞──í <code>httpd.conf</code> ╝│┴ñ╞─└╧┐í └√└²╟╤ <code class="directive"><a href="../mod/mod_so.html#loadmodule">LoadModule</a></code> ┴┘└╗ ├▀░í╟╧░┼│¬ └╠╣╠ └╓┤┘╕Θ ╚░╝║╚¡╟╧┐⌐ ╕≡╡Γ└╗ ╗τ┐δ╟╧╡╡╖╧ ╕╕╡τ┤┘.</dd> <dt><code>-A</code></dt> <dd><code>-a</code>┐═ ║±╜┴╟╧┴÷╕╕, <code class="directive"><a href="../mod/mod_so.html#loadmodule">LoadModule</a></code> ┴÷╜├╛ε ╛╒┐í ┐∞╣░┴ñ└┌(<code>#</code>)╕ª ║┘└╬┤┘. <em>┴∩</em>, ╟÷└τ┤┬ ╗τ┐δ╟╧┴÷╛╩┴÷╕╕ │¬┴▀┐í ╗τ┐δ╟╥ ╝÷ └╓╡╡╖╧ ╕≡╡Γ└╗ ┴╪║±╟╤┤┘.</dd> <dt><code>-e</code></dt> <dd>╞φ┴²└╗ ┴÷╜├╟╤┤┘. <code>-a</code> ╚ñ└║ <code>-A</code> ┐╔╝╟░· ░░└╠ ╗τ┐δ╟╥ ╝÷ └╓└╕╕τ, <code>-i</code> ╕φ╖╔░· ║±╜┴╟╧┴÷╕╕ ╕≡╡Γ└╗ ╝│─í╟╧┴÷╛╩░φ ╛╞╞──í <code>httpd.conf</code> ╝│┴ñ╞─└╧╕╕ ╞φ┴²╟╤┤┘.</dd> </dl> </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> <div class="section"> <h2><a name="examples" id="examples">┐╣┴ª</a></h2> <p>╛╞╞──í╝¡╣÷└╟ ▒Γ┤╔└╗ ╚«└σ╟╧┤┬ <code>mod_foo.c</code>╢≤┤┬ ╛╞╞──í ╕≡╡Γ└╠ └╓┤┘░φ ░í┴ñ╟╧└┌. ╕╒└· ┤┘└╜ ╕φ╖╔╛ε╕ª ╗τ┐δ╟╧┐⌐ C ╝╥╜║╕ª ╛╞╞──í ╝¡╣÷░í └╨╛ε╡Θ└╧ ░°└»░┤├╝╖╬ ──╞─└╧╟╤┤┘:</p> <div class="example"><p><code> $ apxs -c mod_foo.c<br /> gcc -fpic -DSHARED_MODULE -I/path/to/apache/include -c mod_foo.c<br /> ld -Bshareable -o mod_foo.so mod_foo.o<br /> $ _ </code></p></div> <p>▒╫╕«░φ └╠ ░°└»░┤├╝╕ª └╨╛ε╡Θ└╠┤┬ <code class="directive"><a href="../mod/mod_so.html#loadmodule">LoadModule</a></code> ┴÷╜├╛ε╕ª ╛╞╞──í ╝│┴ñ┐í ├▀░í╟╤┤┘. <code>apxs</code>┤┬ └┌╡┐└╕╖╬ ░°└»░┤├╝╕ª "modules" ╡≡╖║┼Σ╕«┐í ╝│─í╟╧░φ <code>httpd.conf</code> ╞─└╧└╗ ╛╦╕┬░╘ ╝÷┴ñ╟╧┐⌐ ░ú┤▄╚≈ └█╛≈└╗ ╕╢─ú┤┘. ┤┘└╜ ░░└╠ ╜╟╟α╟╤┤┘:</p> <div class="example"><p><code> $ apxs -i -a mod_foo.c<br /> cp mod_foo.so /path/to/apache/modules/mod_foo.so<br /> chmod 755 /path/to/apache/modules/mod_foo.so<br /> [activating module `foo' in /path/to/apache/etc/httpd.conf]<br /> $ _ </code></p></div> <p>▒╫╖»╕Θ ┤┘└╜░· ░░└║ ┴┘└╗</p> <div class="example"><p><code> LoadModule foo_module modules/mod_foo.so </code></p></div> <p>╝│┴ñ╞─└╧┐í ╛°┤┘╕Θ ├▀░í╟╤┤┘. └╠ ╝│┴ñ└╗ ▒Γ║╗└√└╕╖╬ ╗τ┐δ╟╧┴÷ ╛╩┤┬┤┘╕Θ <code>-A</code> ┐╔╝╟└╗ ╗τ┐δ╟╤┤┘. <em>┴∩</em></p> <div class="example"><p><code> $ apxs -i -A mod_foo.c </code></p></div> <p>apxs╕ª ╜▒░╘ ╗τ┐δ╟╧╖┴░φ ┤┘└╜░· ░░└╠ ╛╞╞──í ╕≡╡Γ ░▀║╗░· Makefile└╗ ╕╕╡Θ ╝÷ └╓┤┘:</p> <div class="example"><p><code> $ apxs -g -n foo<br /> Creating [DIR] foo<br /> Creating [FILE] foo/Makefile<br /> Creating [FILE] foo/mod_foo.c<br /> $ _ </code></p></div> <p>▒╫╖▒╚─ ╣┘╖╬ ░▀║╗ ╕≡╡Γ└╗ ░°└»░┤├╝╖╬ ──╞─└╧╟╧┐⌐ ╛╞╞──í ╝¡╣÷░í └╨╡╡╖╧╟╤┤┘:</p> <div class="example"><p><code> $ cd foo<br /> $ make all reload<br /> apxs -c mod_foo.c<br /> gcc -fpic -DSHARED_MODULE -I/path/to/apache/include -c mod_foo.c<br /> ld -Bshareable -o mod_foo.so mod_foo.o<br /> apxs -i -a -n "foo" mod_foo.so<br /> cp mod_foo.so /path/to/apache/modules/mod_foo.so<br /> chmod 755 /path/to/apache/modules/mod_foo.so<br /> [activating module `foo' in /path/to/apache/etc/httpd.conf]<br /> apachectl restart<br /> /path/to/apache/sbin/apachectl restart: httpd not running, trying to start<br /> [Tue Mar 31 11:27:55 1998] [debug] mod_so.c(303): loaded module foo_module<br /> /path/to/apache/sbin/apachectl restart: httpd started<br /> $ _ </code></p></div> <p>╜╔┴÷╛ε ╛╞╞──í ╝╥╜║ ╣█┐í╝¡ <code>apxs</code>╕ª ╗τ┐δ╟╧┐⌐ PHP3┐═ ░░└╠ ║╣└Γ╟╤ ╕≡╡Γ└╗ ──╞─└╧╟╥ ╝÷ └╓┤┘:</p> <div class="example"><p><code> $ cd php3<br /> $ ./configure --with-shared-apache=../apache-1.3<br /> $ apxs -c -o libphp3.so mod_php3.c libmodphp3-so.a<br /> gcc -fpic -DSHARED_MODULE -I/tmp/apache/include -c mod_php3.c<br /> ld -Bshareable -o libphp3.so mod_php3.o libmodphp3-so.a<br /> $ _ </code></p></div> <p><code>apxs</code>┤┬ └┌╡┐└╕╖╬ C ╝╥╜║╞─└╧░· ┐└║Ω┴º╞«╞─└╧└╗ ▒╕║░╟╤┤┘. C ╝╥╜║╞─└╧╕╕ ──╞─└╧╟╧░φ │¬╕╙┴÷ ┐└║Ω┴º╞«╞─└╧└║ ╕╡┼⌐╟╥╢º ╗τ┐δ╟╤┤┘.</p> </div></div> <div class="bottomlang"> <p><span>░í┤╔╟╤ ╛≡╛ε: </span><a href="../en/programs/apxs.html" hreflang="en" rel="alternate" title="English"> en </a> | <a href="../ko/programs/apxs.html" title="Korean"> ko </a></p> </div><div id="footer"> <p class="apache">Copyright 1999-2004 The Apache Software Foundation.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p> <p class="menu"><a href="../mod/">╕≡╡Γ</a> | <a href="../mod/directives.html">┴÷╜├╛ε╡Θ</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">┐δ╛ε</a> | <a href="../sitemap.html">╗τ└╠╞«╕╩</a></p></div> </body></html>